/**
 * 
 */
package com.fsoft.tinhcd.bussiness.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fsoft.tinhcd.bussiness.CustomerBussiness;
import com.fsoft.tinhcd.dao.CustomerDao;
import com.fsoft.tinhcd.model.Customers;

/**
 * @author admin
 * 
 */
@Service
public class CustomerBussinessImpl implements CustomerBussiness {
	@Autowired
	private CustomerDao customerDao;

	public CustomerBussinessImpl() {
	}

	@Override
	public boolean add(Customers customers) {
		return customerDao.add(customers);
	}

	@Override
	public boolean update(Customers customers) {
		return customerDao.update(customers);
	}

	@Override
	public boolean delete(Customers customers) {
		return customerDao.delete(customers);
	}

	@Override
	public List<Customers> listCustomer() {
		return customerDao.listCustomer();
	}

	@Override
	public Customers getCustomerById(int customerId) {
        // add comment
		return customerDao.getCustomerById(customerId);
	}

}
